FROM docker.io/tomcat
MAINTAINER liuchao <liuchao@163.com>
EXPOSE 8080 

#ENV CATALINA_HOME /usr/local/tomcat
#ENV PATH $CATALINA_HOME/bin:$PATH

#RUN wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.0.30/bin/apache-tomcat-8.0.30.tar.gz -O /root/apache-tomcat-8.0.30.tar.gz
RUN wget https://services.gradle.org/distributions/gradle-2.10-bin.zip -O /root/gradle-2.10-bin.zip
#RUN wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u71-b15/jdk-8u71-linux-x64.tar.gz -O /root/jdk-8u71-linux-x64.tar.gz

#COPY run.sh /usr/local/bin/

#RUN tar zxvf /root/apache-tomcat-8.0.30.tar.gz -C /opt/
#RUN tar zxvf /root/jdk-8u71-linux-x64.tar.gz -C/opt/
RUN unzip /root/gradle-2.10-bin.zip -d /opt/

#RUN chmod a+x /usr/local/bin/run.sh

CMD ["catalina.sh", "run"]
#CMD ["run.sh"]
#RUN /opt/tomcat/bin/startup.sh
#CMD /bin/bash

